
#pragma once

#include "base/core/singleton.h"
#include "Common/TableDefine.h"


class GuildResearchCfg : public ManualSingleton <GuildResearchCfg>
{
	friend ManualSingleton <GuildResearchCfg>;
public:
	GuildResearchCfg();
	~GuildResearchCfg();
	bool Init(const char *szCfgFile, const char *szSplitChar);
	bool UnInit();
	void Clear();
	const GuildResearchCfgInfo *GetGuildResearchCfgInfo(int32_t researchId);
	const GuildResearchCfgMap *GetGuildResearchCfgMap() { return &m_GuildResearchCfgMap; }
private:
	GuildResearchCfgMap m_GuildResearchCfgMap;
};

#define  g_MakeGuildResearchCfgTable() (GuildResearchCfg::Instance())
#define  g_GetGuildResearchCfgTable() (GuildResearchCfg::GetInstance())
#define  g_DelGuildResearchCfgTable() (GuildResearchCfg::Destroy())